﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace UmlControlLibrary
{
    public class UmlType:UmlElement
    {
       // public static List<UmlType> BuiltInTypes = GetBuiltInTypes();

        public UmlType(string name):base(name)
        {
           
        }

        private static List<UmlType> GetBuiltInTypes()
        {
            EventService.StopBroadcasting();
            List<UmlType> root = new List<UmlType>();
            root.Add(new UmlType("bool"));
            root.Add(new UmlType("byte"));
            root.Add(new UmlType("sbyte"));
            root.Add(new UmlType("char"));
            root.Add(new UmlType("decimal"));
            root.Add(new UmlType("double"));
            root.Add(new UmlType("float"));
            root.Add(new UmlType("int"));
            root.Add(new UmlType("uint"));
            root.Add(new UmlType("long"));
            root.Add(new UmlType("ulong"));
            root.Add(new UmlType("object"));
            root.Add(new UmlType("short"));
            root.Add(new UmlType("ushort"));
            root.Add(new UmlType("string"));
            EventService.ResumeBroadcasting();
            return root;
        }

    }
}
